import os

def writeFile(filename: str, content: str):
    """文件写入工具
    
    Args:
        filename: 输出文件名（支持相对路径）
        content: 写入内容
    """
    os.makedirs(os.path.dirname(filename), exist_ok=True)
    with open(filename, 'w', encoding='utf-8') as f:
        f.write(content)
    print(f"文件已保存：{os.path.abspath(filename)}")